
    <?php $this->widget('zii.widgets.grid.CGridView', array(
        'id'=>'menu-grid',
        'dataProvider'=>$model->search(),
        //'filter'=>$model,
        'pager' => array('cssFile' => Yii::app()->theme->baseUrl . '/assets/gridview/pager.css'),
        'baseScriptUrl'=>Yii::app()->theme->baseUrl.'/assets/gridview',
        'cssFile'=> Yii::app()->theme->baseUrl . '/assets/gridview/styles.css',
        'columns'=>array(

            array(
                'name' => 'title',
                'type' => 'raw',
                'value'=>'CHtml::link($data->title,"view/id/".$data->id,array("style"=>"text-align:center"))',
                'htmlOptions' => array('style'=>'padding:10px'),
            ),
            array(
                'name' => 'category_id',
                'type' => 'raw',
                'value'=>'$data->categories->name',
                'htmlOptions' => array('style'=>'padding:10px'),
            ),

            array(
                'name' => 'create_time',
                'type' => 'raw',
                'value'=>'CLocale::getInstance(Yii::app()->getLocale()->id)->dateFormatter->formatDateTime(strtotime($data->create_time),"long","short")',
                'htmlOptions' => array('style'=>'padding:10px'),
            ),

            /*
            'link_title',
            'module',
            'hidden',
            */
           // array(
           //     'class'=>'CButtonColumn',
           // ),
        ),
    )); ?>
